package com.beiji.lib.pen.model

import java.io.Serializable

/**
 * PenStroke中的一个点
 * Created by X on 2018/6/15.
 */
data class PenDot(
        var x: Float = 0f,
        var y: Float = 0f,
        //压力值，如果是擦除操作，则表示橡皮擦的半径
        var f: Float = 0F
) : Serializable {
    fun copy(): PenDot {
        return PenDot().also {
            it.f = f
            it.x = x
            it.y = y
        }
    }
}